package felix.things.router.mqtt.credentials;

import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @author Felix
 * @date 2019/7/27
 */
@Component
@ConditionalOnProperty(prefix = "mqttrouter.config.credentials", value = "type", havingValue = "anonymous", matchIfMissing = true)
public class AnonymousCredentials implements MqttClientCredentials {

    @Override
    public void configure(MqttConnectOptions clientOptions) {

    }
}
